#ifndef FORM_H
#define FORM_H

#include <QWidget>
#include<QTimer>
#include<QKeyEvent>
#include"mouse.h"
#include"mouse2.h"
#include"wo.h"
#include"mouse3.h"
#include"wo2.h"

namespace Ui {
class Form;

}
class mouse;
class mouse2;
class mouse3;
class wo;
class wo2;
class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = 0);
    ~Form();
    Ui::Form *ui;
protected:

    void keyPressEvent(QKeyEvent*event) override;
    void keyReleaseEvent(QKeyEvent*event) override;

private:

    QList<int> keys;
    QTimer* keyRespondTimer;
    void slotTimeOut();
protected:
    void timerevent1();
    void timerevent2();
    void timerevent3();
    void timerevent4();
    void timerevent5();
    void timerevent6();
    void timerevent7();
    void timerevent8();
    void timerevent9();
    void timerevent10();
    void timerevent11();
    void timerevent12();
    void timerevent13();
    void timerevent14();
    void timerevent15();
    void timerevent16();
    void timerevent17();
    void timerevent18();
    void timerevent19();
    void timerevent20();
    void timerevent21();
public:
    void check();
    mouse* m;
    mouse2* m2;
    wo* w;
    mouse3* m3;
     wo2* w2;


};

#endif // FORM_H
